grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.work.dir = "target/work"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"

grails.project.fork = [
    // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
    //  compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

    // configure settings for the test-app JVM, uses the daemon by default
    test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
    // configure settings for the run-app JVM
    run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    // configure settings for the run-war JVM
    war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    // configure settings for the Console UI JVM
    console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
]

grails.project.dependency.resolver = "ivy" // or maven
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        mavenLocal()
        grailsCentral()
        mavenCentral()
        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        mavenRepo "http://repo.spring.io/milestone"
        //mavenRepo "http://repository.codehaus.org"
        mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"

		// flatDir name: 'myRepo', dirs: '/home/pablo/Projects/Credi/gd/lib'
        flatDir name: 'myRepo', dirs: '/Users/tito/Development/gestdocu/lib'

    }

    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
		runtime 'commons-logging:commons-logging:1.1'
		runtime 'xml-security:xmlsec:1.3.0'
		runtime 'org.jasig.cas.client:cas-client-core:3.2.1'
		//runtime 'org.jasig.cas.client:cas-client-integration-tomcat-common:3.2.1'
		//runtime 'org.jasig.cas.client:cas-client-integration-tomcat-v7:3.2.1'
		
		compile 'org.apache.httpcomponents:fluent-hc:4.3.1'
		compile 'org.apache.httpcomponents:httpcore:4.3'
		compile 'org.apache.httpcomponents:httpclient:4.3.1'
		compile 'org.apache.httpcomponents:httpclient-cache:4.3.1'
		compile 'org.apache.httpcomponents:httpmime:4.3.1'

		//runtime 'postgresql:postgresql:9.3-1100.jdbc4'
		runtime 'postgresql:postgresql:9.1-901-1.jdbc4'
		
		// dependencias de crecer xxi
		
		
		runtime 'org.apache.geronimo.specs:geronimo-activation_1.1_spec:1.1'
		
		runtime 'aopalliance:aopalliance:1.0'
		
		runtime 'avalon-framework:avalon-framework:4.1.3'
		
		runtime 'org.apache.axis:axis:1.4'
		runtime 'org.apache.axis:axis-jaxrpc:1.4'
		runtime 'org.apache.axis:axis-saaj:1.4'
		runtime 'axis:axis-wsdl4j:1.5.1'
		
		runtime 'cglib:cglib-nodep:2.1_3'
		
		runtime 'commons-beanutils:commons-beanutils:1.6.1'
		runtime 'commons-codec:commons-codec:1.2'
		runtime 'commons-collections:commons-collections:3.2'
		runtime 'commons-discovery:commons-discovery:0.5'
		runtime 'commons-httpclient:commons-httpclient:3.0.1'
		runtime 'commons-lang:commons-lang:2.1'
		runtime 'commons-logging:commons-logging-adapters:1.1'
		runtime 'commons-pool:commons-pool:1.3'

		compile ('coop.bancocredicoop.common:crecerxxi-message-exposition-client:6.0.6') {
			excludes([ group: 'jboss', name: 'jbossall-client' ],
			[ group: 'org.springframework' ],
			[ group: 'javax.servlet', name: 'servlet-api' ])
		}

		runtime 'org.codehaus.jackson:jackson-core-asl:1.6.0'
		runtime 'org.codehaus.jackson:jackson-mapper-asl:1.6.0'
		
		runtime 'jakarta-regexp:jakarta-regexp:1.3'
		
		runtime 'jdom:jdom:1.0'
		
		runtime 'log4j:log4j:1.2.12'
		
		runtime 'logkit:logkit:1.0.1'
		
		runtime 'javax.mail:mail:1.4'
		
		runtime 'xerces:xercesImpl:2.8.1'
		
		runtime 'xml-apis:xml-apis:1.3.04'
		
		runtime 'xpp3:xpp3_min:1.1.4c'
		
		runtime 'com.thoughtworks.xstream:xstream:1.3'
		
		
		
		
		runtime 'credicoop:java-client-interfaces:6.0.4'
		runtime 'credicoop:java-common-domain:6.1.7'
		runtime 'credicoop:java-common-message:6.0.6'
		runtime 'credicoop:java-common-service:6.0.5'
		runtime 'credicoop:java-service-connector:6.0.12'
		runtime 'credicoop:java-service-connector-backport:6.0.6'

		runtime 'coop.bancocredicoop.proyectos.externo:power-exceptions:1.0.0'
		runtime 'coop.bancocredicoop.proyectos.externo:power-includes:1.0.0'
		runtime 'coop.bancocredicoop.proyectos.externo:power-jaasclient:1.0.0'
		runtime 'coop.bancocredicoop.proyectos.externo:power-locator:1.0.0'
		runtime 'coop.bancocredicoop.proyectos.externo:power-parameter-configurator:1.0.0'
		runtime 'coop.bancocredicoop.proyectos.rbac:power-segmentation-client:3.0.0'
		
    }

    plugins {
        // plugins for the build system only
        build ":tomcat:7.0.42"

        // plugins for the compile step
        compile ":scaffolding:2.0.0"
        compile ':cache:1.1.1'
        //compile ':spring-security-core:2.0-RC2'

        // plugins needed at runtime but not for compilation
        runtime ":hibernate:3.6.10.3" // or ":hibernate4:4.1.11.1"
        runtime ":database-migration:1.3.5"
        runtime ":jquery:1.10.2"
        runtime ":resources:1.2"
        compile ":mail:1.0.1", {
            excludes 'spring-test'
        }
        compile ":quartz2:2.1.6.2"
        // Uncomment these (or add new ones) to enable additional resources capabilities
        //runtime ":zipped-resources:1.0.1"
        //runtime ":cached-resources:1.1"
        //runtime ":yui-minify-resources:0.1.5"
    }
}

/*
grails.war.resources = { stagingDir, args -> 
    def resourceDir = "${stagingDir}/WEB-APP/resources"
    mkdir(dir: resourceDir)
    copy(todir: resourceDir) {
        fileset(dir: "resources") {
            include(name: "*.csv")
        }
    }     
}

*/

